import Layout from '../components/Layout.vue'

let routes = [
    {
        path:'/Login',
        meta:{
            tirle:'登录',
            hidden:true,
        },
        component:() => import('../views/Login.vue')
    },
    {
        path:'/Register',
        meta:{
            tirle:'登录',
            hidden:true,
        },
        component:() => import('../views/Register.vue')
    },
    {
    path: '/',
    //重定向
    redirect: { path: '/diqiu' },
    meta: {
        title: '首页',
        icon: '#icon-home1',
        hidden: true,
    },
    component: Layout,
    children: [{
        path: 'diqiu',
        meta: {
            title: '地球',
            icon: 'el-icon-football',
        },
        component: () => import('../views/Diqiu.vue')
    },
    ]
},
{
    path: '/Navigationtwo',
    meta: {
        title: '导航二',
        icon: '#icon-home1',
    },
    component: Layout,
    children: [{
        path: 'Graohglgpu',
        meta: {
            title: 'Gpu',
            icon: 'el-icon-cpu',
        },
        component: () => import('../views/Graphglgpu.vue'),
    },
    {
        path: 'Radar',
        meta: {
            title: 'Radar',
            icon: 'el-icon-s-data',
        },
        component: () => import('../views/Radar.vue')
    },
    ]
},
{
    path: '/Navigationthree',
    meta: {
        title: '导航三',
        icon: 'el-icon-message',
    },
    component: Layout,
    children: [{
        path: 'Users',
        meta: {
            title: '用户表',
            icon: 'el-icon-message',
        },
        component: () => import('../views/Users.vue')
    },
    {
        path: 'grouptwo',
        meta: {
            title: '分组二',
            icon: 'el-icon-message',
        },
    },
    ]
},
]

export default routes